(function () {
    initLoad();
})();


const defaultHeadersTest = { "Content-Type": "application/json;charset=UTF-8" }

// 初始化调用
function initLoad() {
    $("#btn").click(function (e) {
        const getHttpUrl = "https://5fq4452792.zicp.fun/api/loginauth/menu/mooc/left";
        ajaxRequest({
            url:getHttpUrl, 
            type: 'post',
            headers: {
                ...defaultHeadersTest,
                'Decrypt-Data': enCodeUrl(encrypt('{"userName":"123456","passWord":"7654321"}'))
            },
            data: {}
        });


        // const postHttpUrl = "https://file.rayooec.cn/pem/prod-api/sysDictType/pageList";
        // ajaxRequest({
        //     url: postHttpUrl,
        //     type: 'post',
        //     headers: {
        //         ...defaultHeaders,
        //         "Authorization": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiJhZG1pbiIsImV4cCI6MTY2MDczNDM4MH0.05gDHCEjkyqWqM-ilwVrTFqDoaiWuW0CbuhZWplKcDM" 
        //     },
        //     data: {"baseEntity":{},"pageNum":1,"pageSize":10}
        // })
    });
}